<?php session_start();?>
<?php
 if($_SESSION['tipo']!="Professor")
 {
      header('Location: ../login_error.html');
 }
?>
<!DOCTYPE html>
<html lang="pt-BR">
    <head>
        <title>SisKepler</title>
        <meta charset="UTF-8">
        <link rel="icon" type="image/png" href="../../../library/img/favicon.png" />
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="../../../library/css/bootstrap/bootstrap.css" media="screen">
        <link rel="stylesheet" href="../../../library/css/style.css">
        <script type="text/javascript" src="../../script/sugestionFunctionProfessor.js"></script>
        <script type="text/javascript" src="../../script/sugestionFunctionAluno.js"></script>
    </head>
    <body>
        <div class="wrap">
            <header class="header">
                <div class="navbar navbar-default">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="#">
                            <div class="col-lg-2"></div>
                            <div class="col-lg-3"><strong>SisKepler</strong></div>
                        </a>
                    </div>
                    <div class="navbar-collapse collapse navbar-responsive-collapse btn-sair">
                        <ul class="nav navbar-nav navbar-right">
                            <li><a href="../login_close.php" class="a-btn-sair">Sair</a></li>
                        </ul>
                    </div>       

                </div>

                <ul class="breadcrumb">
                    <li class="active">Home</li>
                </ul>

            </header>

            <div class="main row">

                <aside class="menu-vertical col-lg-3">

                    <div class="menu">
                        <ul class="nav nav-pills nav-stacked">
                            <li class=""><a href="menu.professor.php">Perfil</a></li>
                            <li class=""><a href="menu.professor.php?page=orientacao">Orientação</a></li>
                            <li class=""><a href="menu.professor.php?page=bancas">Bancas</a></li>
                            <li class="dropdown">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    Relatórios <span class="caret"></span>
                                </a>
                                <ul class="dropdown-menu">
                                    <li><a href="autorizar_trabalhos_tcc.php">Manter Relatório</a></li>
                                    <li><a href="../forms/ata_defesa_.html">Ata de defesa</a></li>
                                    <li><a href="../forms/avaliacao_tcc_ii.html">Avaliação do TCC II</a></li>
                                    <li><a href="../forms/lista_de_presenca.html">Lista de Presença</a></li>
                                    <li><a href="../forms/parecer_final.html">Parecer Final</a></li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    Co-orientação <span class="caret"></span>
                                </a>
                                <ul class="dropdown-menu">
                                    <li><a href="#"></a></li>
                                    <li class="divider"></li>
                                    <li><a href="#">Separated link</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>

                </aside>

                <section class="col-lg-7 principal" id="principal"  style="padding-top: 1%;">
                    <?php if (!isset($_REQUEST['page'])): ?>
                        <div class="well perfil">
                            <div class="row">  
                                <div class="col-lg-3"></div>
                                <div class="col-lg-6">
                                    <img style="width:38%;" src="../../../library/img/user.png" class="img-circle"/>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-lg-3"></div>
                                <div class="col-lg-6">
                                    
                                    <?php
                                    if ($_SESSION['nome'] != null || $_SESSION['email'] != null || $_SESSION['univers'] != null) {
                                        $nome = $_SESSION['nome'];
                                        $email = $_SESSION['email'];
                                        $inst = $_SESSION['univers'];

                                        echo "<h3><label id=\"nome\">" . "$nome" . "</label></h3>";
                                        echo "<h6><label>Insituição: </label><span id=\"instituicao\"> " . $inst . "</span></h6>";
                                        echo "<h6><label>Email: </label><span id=\"email\">" . " $email" . "</span></h6>";
                                    } else {
                                        header('Location: ../login_error.html');
                                    }
                                    ?>
                                </div> </div>
                        </div>
                        <?php
                    else:
                        include($_REQUEST['page'] . ".php");
                    endif;
                    ?>
            </div>
            <div class="col-lg-1"></div>

        </section>  
        <div class="col-lg-1"></div>

    </div>  

    <div class="col-lg-3"></div>
    <footer class="footer row">

        <div class="text-copyright">
            <p>
                &copy; 2014 <strong>Grupo I/ Disciplina de RP5</strong> - 		Todos os direitos reservados.
            </p>
        </div>

    </footer>
    <div class="col-lg-3"></div>
</div>
<script src="../../../library/css/bootstrap/js/jquery.js"></script>
<script src="../../../library/css/bootstrap/js/bootstrap.js"></script>
</body>
</html>
